﻿using System;
using System.Runtime.Serialization;

namespace TimeTravel.Components
{
    /// <summary>
    /// 系统日志（未支持）
    /// </summary>
    [DataContract]
    public class SysLogInfo : BaseComponent
    {
        /// <summary>
        /// 记录日期
        /// </summary>
        [DataMember(Name = "logdate")]
        public string LogDate { get; set; }

        /// <summary>
        /// 触发线程
        /// </summary>
        [DataMember(Name = "thread")]
        public String Thread { get; set; }
        
        /// <summary>
        /// 日志等级
        /// </summary>
        [DataMember(Name = "loglevel")]
        public String LogLevel { get; set; }

        /// <summary>
        /// 记录者
        /// </summary>
        [DataMember(Name = "logger")]
        public String Logger { get; set; }

        /// <summary>
        /// 日志信息
        /// </summary>
        [DataMember(Name = "message")]
        public String Message { get; set; }

        /// <summary>
        /// 异常信息（可能为空）
        /// </summary>
        [DataMember(Name = "exception")]
        public String Exception { get; set; }
    }
}
